<?php $this->widget('zii.widgets.grid.CGridView', array(
		'id'=>'player-grid',
		'dataProvider'=>$dataProvider,
		'filter'=>new RepresentanteLegal(),
		'columns'=>array(
		'ID_REPRESENTANTE_LEGAL',
		'NOMBRE',
		'RFC',
		'TELEFONO',
		'CORREO_ELECTRONICO',
	
				array(
			'class'=>'CButtonColumn',
		'template'=>'{agregar}',
						'buttons'=>array
(
		'agregar' => array
		(		
				'title'=>'"$data->ID_REPRESENTANTE_LEGAL"',
				'label'=>'Seleccionar',
				'options'=>array('title'=>'"$data->ID_REPRESENTANTE_LEGAL"', 'id'=>'"$row"', 'class'=>'btn btn-primary', 'data-loading-text'=>"Loading..."),
				//'imageUrl'=>Yii::app()->request->baseUrl.'/images/ok.png',
				'url'=>'Yii::app()->createUrl("empresa/updateRepresentanteLegal",array("id_empresa"=>'.$model->ID_EMPRESA.',"id_representante_legal"=>$data->ID_REPRESENTANTE_LEGAL))',
				'click'=>'function(e) {alert("hola"); var $this=$(this); $this.button("loading");}',
		),
		
),
		),
	),
)); ?>
